package com.hmall.api.client;

import com.hmall.api.config.DefaultFeignConfig;
import com.hmall.api.dto.OrderPayDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "trade-service", configuration = DefaultFeignConfig.class)
public interface orderClient {
    @PutMapping("/orders/pay")
    void payOrder(@RequestBody OrderPayDTO orderPayDTO);
}
